package main

import (
	"bufio"
	"fmt"
	"net"
)

var (
	conn net.Conn
)

func (conn net.Conn,err error) InitConn(comm_type string,bank_ip_msg string)
{
	err:=nil
	
	conn, err := net.Dial(comm_type, bank_ip_msg)
	
	if err!=nil {
        fmt.Println("服务端连接失败,原因:%s",err);
    }
	
	return err
}


func (snd_number int,err error) send_bank_msg(bank_msg byte[], conn net.Conn) {
	client.Write(bank_msg);
}

func (length int,err error)rev_bank_msg(byte[] rev_msg)
{
	
}

func disConnect(conn net.Conn)
{
	conn.Close()
}
